package com.jeesite.modules.dataScreen.dao;

import cn.hutool.core.date.DateTime;
import com.alibaba.fastjson2.JSONObject;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jeesite.modules.dataScreen.web.vo.TrafficDTO;
import com.jeesite.modules.dataScreen.web.vo.event.EventConductItemVo;
import com.jeesite.modules.dataScreen.web.vo.event.EventConductVo;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.util.Map;

@DS("sjtb-db")
public interface EventConductDao {

    List<EventConductItemVo> cellItem(int year);

    IPage<EventConductVo> eventList(Page<EventConductVo> page,@Param("times") Date[] times);

    IPage<EventConductVo> windowList(Page<EventConductVo> page, String mainType, String status,
                                     String name, String start, String end, String level, DateTime[] times);

    List<EventConductVo> incidentNumber(@Param("times") Date[] times);

    List<TrafficDTO> eventDetails(int oid,String sjyptid);

    List<JSONObject> levelCount(int status,DateTime[] times);

    List<JSONObject> eventInformation(String oid);
}
